Fixed bug with default port in URL formatting.