turn new lines from \r\n to \n