lib/timber/util/string.rb in timber-2.0.23 vs lib/timber/util/string.rb in timber-2.0.24

- old
+ new

@@ -7,10 +7,10 @@ # @private def self.normalize_to_utf8(string) if string.encoding.to_s == UTF8 string else - string.encode('UTF-8', { + string.encode(UTF8, { :invalid => :replace, :undef => :replace, :replace => '?' }) end \ No newline at end of file