Ruby 1.9.2 does not have a `.write` method on `IO`