Fixing UndefinedConversionError

Force encoding to prevent output error: #<Encoding::UndefinedConversionError: "\xD0" from ASCII-8BIT to UTF-8