Escape values for correct handling of sparql endpoints