Fixed file reading to allow for universal endline support