Fix RDFLib artefacts in output. Fixes #1.