Fix python2 related encoding (utf-8) stuff.