PM-757: Replace url quoting with xml quoting for stdio

We discovered that the URL quoting technique we
were using to stuff task stdio into netlogger
records didn't work for unicode characters. This
commit replaces url quoting with XML character
entity references instead.