Actually, encoding filters as data urls does work, I was just making an effect-specific error for my gooey effect Check https://beta.observablehq.com/@kelleyvanevert/gooey-filter-via-a-data-url for a working example.
The question remains, whether the data url technique is necessary in Observable…?