How to do this using the built-in method str.decode:
>>> 'Tannh‰user'.decode('ascii', 'replace').replace(u'\ufffd', '_')
u'Tannh___user'
(You get a string unicode, so convert it to if necessary str).
unicode str, , ASCII, ASCII. , unicode.encode replace -ASCII '?', , ; . -.
, ord() , ASCII (0-127) - unicode str utf-8,
>>> s = u'Tannh‰user'
>>> "".join((c if ord(c) < 128 else '_' for c in s))
u'Tannh_user'