lib/util/charset/util_unistr: add strlen_m_ext that takes input and output charset