def _ascii_encode(ascii: str) -> bytes:
    """Encode string of ASCII charactors to bytes.

    Args:
        ascii (str): ASCII charactors

    Returns:
        str: Converted bytes
    """
    return ascii.encode("ascii", "replace")