I was playing with these conversions and .encode('utf-8') sometimes caused problems. After changing to unicode(string,"utf-8") one of the bugs was removed.