TS-3222: Fix URL print to not put leading zeros in port.