Unify parsing URLs, enforce TCP transport and add default port