Added functionality for custom encoding (default utf-8)
Merge pull request #25 from kelostrada/master

Added functionality for custom encoding