Use multibyte-aware truncation to avoid invalid UTF-8 in cl_sortkey_prefix