code: def u2s(self,u):
  		
  
  		try:
  			return u.encode('utf-8',errors='ignore')
  		except (UnicodeDecodeError,AttributeError) as e:
  			try:
  				return str(u)
  			except UnicodeEncodeError:
  				return unicode(u).encode('utf-8',errors='ignore')
docs: Returns an ASCII representation of the Unicode string 'u'.