Simple utf8 encoder/decoder.