replace \n to \r\n