Preprocess url to add missing protocols