Convert protocol ssl:// to https:// when creating http headers