Fix line endings (\r\n -> \n)