Put the finishing touches on UTF-8 support.  Fixes #66