monkey-patch StringIO in hopes of fixing jruby build also