fails:IO#ungetc returns nil when invoked on stream that was not yet read
