Support pretty_system on Ruby 1.8.7

`IO.getc` on ruby 1.8.7 returns a `Fixnum` instead of a `String`.