Fixes issues caused by Window text files starting with a BOM