replace \n with \r\n