Open files as UTF-8 to fix parsing exception when BOM is present