Fix failure on unicode files
Merge pull request #16 from Xuerian/master

Fix error on files containing unicode characters