Fix parsing file failure encoded "utf-8 with bom"
Merge pull request #1163 from kiinoo/master