Fixed exception writing and added UTF-8 capability to tests.