Fix error representation for unicode object