diff -r f73a9a884534 -r a34edc1057c0 sobjects/cwxmlparser.py --- a/sobjects/cwxmlparser.py Thu Oct 01 12:33:58 2015 +0200 +++ b/sobjects/cwxmlparser.py Thu Oct 01 12:34:49 2015 +0200 @@ -206,7 +206,7 @@ * `rels` is for relations and structured as {role: {relation: [(related item, related rels)...]} """ - entity = self.extid2entity(str(item['cwuri']), item['cwtype'], + entity = self.extid2entity(item['cwuri'].encode('ascii'), item['cwtype'], cwsource=item['cwsource'], item=item, raise_on_error=raise_on_error) if entity is None: