Properly handle SSL URIs