diff --git a/pylode/profiles/base.py b/pylode/profiles/base.py index c6e0a15..64e7550 100644 --- a/pylode/profiles/base.py +++ b/pylode/profiles/base.py @@ -464,7 +464,7 @@ def _make_schemaorg_metadata(self): from rdflib.plugin import register, Serializer register('json-ld', Serializer, 'rdflib_jsonld.serializer', 'JsonLDSerializer') - return g.serialize(format="json-ld").decode("utf-8") + return g.serialize(format="json-ld", encoding="utf-8") # support >= rdflib 6.0.0 and ensure backwards compat (last python 2 release) def _make_agent_link(self, name, url=None, email=None, affiliation=None): if self.outputformat == "md":