modify unbuffered I/O bahavior to be coherent with C library
return "\0" when only EOF entered