solve utf8 problem in python 2 and 3