Normalize protocol of internal URLs