make referral name from url case always lowercase

We shouldn't assume anything about the case of a url. This makes all referral names lowercase.