Migrate away from deprecated is_safe filter attribute