Attempted to handle URLs with anchors correctly. Added tests, but five of them still fail.