s3:lib/util_str: add strlen_m_ext() that takes input and output charset