add p3 str support
encode and decode in py3
fix py3
Merge pull request #20 from GuoJing/py3

Py3