Return the normalized domain along with the referer, and handle crazy cases