escape data being sent to the gadget so that it doesn't cause problems