lib: charset: add u16_str<n>cmp()