fix encoding problems in python2 for travis