windows:IO#ungetc adjusts the stream position
