correctly open file with bom symbol