Handle eof in read, more special chars.