def yenc_name_fixer(p):
 try:
  return p.decode('utf-8')
 except:
  return p.decode('cp1252', errors='replace').replace('?', '!')

def yenc_name_fixer ( p ) : try : return p . decode ( 'utf-8' ) except : return p . decode ( 'cp1252' , errors = 'replace' ) . replace ( '?' , '!' )
return unicode name of 8bit ascii string .