Changed the script to output the file using ANSI (ascii) due to what appears to be an incompatability with the previous UTF8 character set