Handle special characters in the incoming referer.