strip out port from hostname