The command built its JSON request with the operator's words as a plain
%s inside a string, so /foreign search he said "hi" there ended the
value early and was answered with "'query' is required" - the whole
phrase lost. The text (and the source/id pair) goes through
sp_json_escape now.
before: /foreign search he said "hi" there -> error: 'query' is required
after: the same command reaches the stores and answers
tests/test_foreign: red with the old line (2 failures), green with the fix
make check: all tests passed, rc=0