For [Bernd & Sarfaraz] Added unicode string support for python 2.x.

@berndverst @safoo