fix read file with BOM