Convert RDF literals as necessary