i18n: New functions for truncating strings in an arbitrary encoding.