Hi:
I don´t know if it´s the same problem, but i had the same editing a file on Windows. When i upload to the datastore and tried to run the machine, it was corrupt.
The problem solved when i used another editor instead notepad++ so can you try another way to edit the file?