preserving original newline characters in the file (\n or \r\n)