Migrate from deprecated is_safe filter attribute