diff --git a/authomatic/providers/openid.py b/authomatic/providers/openid.py
index <HASH>..<HASH> 100644
--- a/authomatic/providers/openid.py
+++ b/authomatic/providers/openid.py
@@ -95,6 +95,7 @@ class SessionWrapper(object):
         val = self.session.get(key)
         if val and val.startswith(self.prefix):
             split = val.split(self.prefix)[1]
+            split = str(split)
             unpickled = pickle.loads(split)
 
             return unpickled
fix an error i was getting with yahoo openid