fixing unicode issue for python 3