add ENCODING args
Merge pull request #8 from zokis/master

Add encoding argument