Set the default port to 443 when using a secure url

fixes #151