[doc] formatting
[fix] character encoding
[enh] encoding tests
[fix] py3 compatibility