class Mail::Multibyte::Chars

def limit(limit)

s.mb_chars.limit(7) # => "こに"
s = 'こんにちは'
Example:

when the storage for a string is limited for some reason.
Limit the byte size of the string to a number of bytes without breaking characters. Usable
def limit(limit)
  slice(0...translate_offset(limit))
end