Fix bug with escaping SPARQL literals