def clean_email_address_str(input_string):
    """Remove unwanted characters from an email address.

    This only handles characters, not encoding.

    Args:
        input_string (str): The email address to clean

    Returns:
        str: The cleaned version of `input_string`

    Examples:
        >>> clean_email_address_str('test_name@email.com')
        'test_name@email.com'
        >>> clean_email_address_str('\\rtest??  _name\\t@email.com\\n')
        'test_name@email.com'
    """
    # result = str(input_string).translate(None, ',? \t\n\r') # old, doesn't work in Py3
    result = input_string
    chars = ',? \t\n\r'
    for c in chars:
        result = result.replace(c, '')
    return result