Escape backslashes in the mapfile string writer (#4747)