SSP-2451 URI encode usernames passed to Platform person lookups

Unfortunately involved a huge amount of copy paste to change just one
line in SimpleCrossContextRestApiInvoker.