Fix bug #3563 (URL parser will read out of bounds when closing bracket is missing...