OutputStream.write_buffer returns IOString with default encoding
henkesn opened this issue · comments
In my case this is UTF-8, which produces encoding errors in encoding sensitive use cases.
I'd rather initialize the StringIO.new() in binmode which sets the encoding to ASCI-8BIT and prevents such errors, which are hard to find.