strip out old link protocol