Fix #88

Uses implicit codec to correct invalid characters in input files.
Merge pull request #89 from LBliss/issue/88

Fix #88