Fix StringIndexOutOfBoundsException in ConnectionException