Escapes a string for use as a URI.
a string to be escaped, following the tracker sparql rules
a newly-allocated string holding the result.