added possibility to specify the encoding
Merge pull request #40 from und1f/master

Support for encoding different than UTF-8