fails:IO#ungetc raises IOError when invoked on stream that was not yet read
