read a byte and not a char in EOF check
read a byte and not a char in EOF check

Reading a char can fail when this char gets decoded to utf8.

cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp