i18n: New function recode_string_len().