more unicode fixes and tests

* fixes #18