Fix hostname contains "2" (eg. 192.168.1.2 / 2.test.com)

It wrongly split the Path when the hostname contains "2" in between.

eg. 192.168.1.2 / 2.test.com