stripping querystring from guids before detecting duplicates