update utf-8 support for py2.7