utf8 handling fixes

closed #61