More careful utf8 encoding.