utf8ucs2
inlen = utf8ucs2(in, n, out ? p : out);
static int utf8ucs2(const u_int8_t *, int, u_int16_t *);