What are you actually trying to accomplish? Do you really want to encode the
string "<s:property..." or do you want the value of the candidate ID?
If the latter, it depends on how you're trying to generate the URL, so without more info, it's tough to help.
If the former, why?!>