In python 2, urllib.quote and base64.b64encode only accept ascii range characters so passing unicode string to them will raise KeyError and UnicodeEncodeError. For base64.b64encode, it accepts bytes rather than string, and urllib.quote fine with py3k but since ST2 ships with python 2 and python 2 won't fix this behavior (http://bugs.python.org/issue1712522), maybe some extra code to manually handle non-ascii characters will be needed.
In python 2, urllib.quote and base64.b64encode only accept ascii range characters so passing unicode string to them will raise KeyError and UnicodeEncodeError. For base64.b64encode, it accepts bytes rather than string, and urllib.quote fine with py3k but since ST2 ships with python 2 and python 2 won't fix this behavior (http://bugs.python.org/issue1712522), maybe some extra code to manually handle non-ascii characters will be needed.