Nicer error message on invalid server URI.

Bug 953049