ucs2utf8str
len = utf8 ? ucs2utf8str(wn, WIN_CHARS, buf, sizeof(buf))
static int ucs2utf8str(const u_int16_t *, int, u_int8_t *, int);