Keep in mind that ´netloc´ can also contain the port separated by a colon. So you want to split that too. Otherwise we will get problems saving it to disk on some platforms.