escaping quotes. Removing dupes from RDF output