Bug in uni2utf8, we didn't null terminate the string.