Better handling of port defaults and gemini redirects.