def METHOD_NAME(
    self, url: Any, other: Any, match_querystring: bool = False
) -> bool:
    """
    Need to override this so we can fix querystrings breaking regex matching
    """
    if not match_querystring:
        other = other.split("?", 1)[0]
    if isinstance(url, str):
        if responses._has_unicode(url):
            url = responses._clean_unicode(url)
            if not isinstance(other, str):
                other = other.encode("ascii").decode("utf8")
        return self._url_matches_strict(url, other)  # type: ignore[attr-defined]
    elif isinstance(url, responses.Pattern) and url.match(other):
        return True
    else:
        return False