Use JoinHostPort for URL that browser opens (fixes #732)