Sanitize and decode