Adds support for output encoding
Updates README.md