Fixed a large number of unicode handling issues.  There will probably be more to come.