Fixed problem with non-ASCII characters creeping into text files.