Serialize an arbitrary Prolog term as a string. The string is
prefixed by a magic key to ensure we only accept messages that are
meant for us.
In mode (+,-), Term is written with the options ignore_ops(true)
and
quoted(true)
.
This predicate first calls udp_term_string_hook/3.