[dataimport] Properly escape strings sent to COPY FROM (closes #5278743) [applied]