fixed utf-8 encode on json request which broke python 3 support
fixed python 3 incompatibility