# File lib/active_support/multibyte/handlers/utf8_handler.rb, line 342
      def consumes?(str)
        # Unpack is a little bit faster than regular expressions
        begin
          str.unpack('U*')
          true
        rescue ArgumentError
          false
        end
      end