a9892b58 - 2017-11-03

I'm looking at a way to fix this, but encoding handling looks messy. It seems like not all paths even handle encoding (processing from file names does to some degree, but processing from Cin does not at all). It looks like that part needs a refactoring.