Urlencode XML to avoid breaking POSTed xml when it contains characters like the ampersand