p/http_loadtime: fix escaping of user agent

Avoid using spaces in the useragent.

Closes: D:753506
Merge branch 'bts/fix-753506-http_loadtime-incorrect-escaping' into stable-2.0