Bug fix: try to encode rdf as utf-8 before parsing