fixes and tests for unicode handling