Removed the .encode(utf-8) which is wrong in Python 3.x