Sanitize inputs.