Fixed a name validation bug

* We did not start because we could not validate localhost:8080 to be
  the valid name localhost. The broblem was that we did not handle the
  ':' character.