import unicodedata


def ascii(string):
    """Return an ascii encoded version of the string.

    Args:
        string (str, bytes): The string to encode.

    Returns:
        str: The ascii encoded string.
    """
    return unicodedata.normalize("NFKD", string).encode("ascii", "ignore").decode("ascii")