class RSpec::Support::EncodedString

def initialize(string, encoding=nil)

def initialize(string, encoding=nil)
  @encoding = encoding
  @source_encoding = detect_source_encoding(string)
  @string = matching_encoding(string)
end