Enhance: Support py3 encoding