def to_ascii(s):
    """
    Convert the bytes string to a ASCII string
    Usefull to remove accent (diacritics)
 
    From crmsh.utils
    """
    if s is None:
        return s
    if isinstance(s, str):
        return s
    try:
        return str(s, 'utf-8')
    except UnicodeDecodeError:
        import traceback
        traceback.print_exc()
        return s
