Strip semi-colons before setting the "referrer" global var

Strip semi-colons from the URL which would otherwise throw a "Disallowed Key Characters" error