Add non-destructive ::sanitize_attributes method