Fixing crash on https urls.