module ActiveSupport::Multibyte::Unicode

def compose(codepoints)

Compose decomposed characters to the composed form.
def compose(codepoints)
  codepoints.pack("U*").unicode_normalize(:nfc).codepoints
end