Fixed issue where sscanf could not handle special chars within the referer.