Fixed a bug related to urls with ports failing.
Introduced with VB net support/refactor