Stop butchering up strings

Quick and dirty fix to make it work on Python3