UTF8 Output Encoding

More work on getting the output file into UTF-8 format