Add InputStream#ungetc

Works like IO#ungetc
Use String#reverse in test for 1.9 compatibility
Use string concatenation instead of String#prepend

For < Ruby 1.9.3 compatibility
Merge pull request #141 from zacstewart/master

Add InputStream#ungetc