for support python2 utf8 and gbk