Allow specifying encoding from command line 

This fixes #6. In the specific case mentioned in #6, the fix would be to make use of the new option`--encoding=latin-1`.