small custom utf8 and utf16 string library