When trying to write a string to a file I get this message:
irb(main):011:0> IO.write("/tmp/a1", r1.body.to_s)
Encoding::UndefinedConversionError: "\xC2" from ASCII-8BIT to UTF-8
from (irb):11:in `write'
from (irb):11
irb(main):012:0>
What am I doing wrong?