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,7 +95,7 @@ class SessionWrapper(object):
         val = self.session.get(key)
         if val and val.startswith(self.prefix):
             split = val.split(self.prefix)[1]
-            unpickled = pickle.loads(split)
+            unpickled = pickle.loads(str(split))
 
             return unpickled
         else:
Fixed a bug when openid session wrapper could not unpickle value

in python <I>.