file corupted with invalid characters at the start of the file