Escapes data in mass_inserts and mass_updates