[Bug 9894] CRLF and ^Z handling bad in fread, causes xilinx modelsim mxe III startup to fail