fixes UTF-8 to IBM437 encoding error

turns out StringIO needs an encoding set explicitly (StringIO takes the
system encoding, like any other IO, but strings are (by default) UTF-8,
so chucking UTF-8 strings into an IBM437 IO obviously breaks stuff.)