Separate encoding definition
Merge pull request #6 from xkollar/reader

Separate creation of inputreader