encoding problems, can't find solution in python2, python3 works