# File lib/new_relic/helper.rb, line 15
      def correctly_encoded(string)
        return string unless string.is_a? String
        # The .dup here is intentional, since force_encoding mutates the target,
        # and we don't know who is going to use this string downstream of us.
        string.valid_encoding? ? string : string.dup.force_encoding("ASCII-8BIT")
      end