Remove HTTPs where not needed/possible