normalize (ActiveSupport::Multibyte::Handlers::UTF8Handler)

    # File lib/active_support/multibyte/handlers/utf8_handler.rb, line 289
          def normalize(str, form=ActiveSupport::Multibyte::DEFAULT_NORMALIZATION_FORM)
            # See http://www.unicode.org/reports/tr15, Table 1
            codepoints = u_unpack(str)
            case form
              when :d
                reorder_characters(decompose_codepoints(:canonical, codepoints))
              when :c
                compose_codepoints reorder_characters(decompose_codepoints(:canonical, codepoints))
              when :kd
                reorder_characters(decompose_codepoints(:compatability, codepoints))
              when :kc
                compose_codepoints reorder_characters(decompose_codepoints(:compatability, codepoints))
              else
                raise ArgumentError, "#{form} is not a valid normalization variant", caller
            end.pack('U*')
          end