support encoding and decoding of utf-8 characters

this invalidates #65