Encoding support (fix #4).
Merge pull request #5 from julien-f/encoding

Encoding support (fix #4).