fix unicode handling
extend test app
tests for unicode