to handle non-UTF-8 file types. Added a new test case and enhanced the test rigs to be able to write non-UTF-8 files. Final cleanup