(#22043) Avoid double-escaping facts in the catalog retrieval request

On the agent, don't double escape, and add a :facts_unescaped option
to the options hash, to indicate so.  On the master, accept both the
new format and the old double-escaped format.
(maint) remove duplicate spec test