Fixed problem with special chars in SPARQL queries