Sanitise inputs.