Fix SPARQL serialization