Further fixes and tests for unicode handling (issues #69, #70, & #71)