WIP on adding Unicode conversion code. Currently fails all tests.