Sanitize and well-form tokens.