Make HTTPS work with iOS 5