def _safestr(s):
    """ Get a good string for printing, that won't throw exceptions,
        no matter what's in it.
    """
    try:
        return unicode(s).encode(sys.getdefaultencoding())
    except UnicodeError:
        return '?: '+repr(s)
 Get a good string for printing, that won't throw exceptions,
        no matter what's in it.
    
recipes/Python/576811_Rename_MP3_files_ID3_tags_does_not_require/recipe-576811.py