    # File lib/stella/core_ext.rb, line 125
      def encode_fix(enc="UTF-8")
        if RUBY_VERSION >= "1.9"
          begin
            encode!(enc, :undef => :replace, :invalid => :replace, :replace => '?')
          rescue Encoding::CompatibilityError
            BS.info "String#encode_fix: resorting to US-ASCII"
            encode!("US-ASCII", :undef => :replace, :invalid => :replace, :replace => '?')
          end
        end
        self
      end