Change how URLs are compared to each other.

This is to prevent issues with newer versions of
cURL which strip out the anchor (fragment) from
the URL when retrieving CURLINFO_EFFECTIVE_URL.