Fix utf8, python2 compatibility