Resolve 'write': '\xC3' from ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError) problem