Crack URLs a bit smarter. Fall back to port 443 for https.