import unicodedata


def strip_accents(eval_ctx, value):
    """Strip non ASCII characters and convert them to ASCII."""
    return unicodedata.normalize('NFKD', value).encode('ascii', 'ignore').decode("utf-8")