Fixed file read to work with universal newline formats