Fix off-by-one boundary check in URI parsing
Found by stricter asserts in Qt 6.
This also allows to require passing unit tests in all CI configurations.
Found by stricter asserts in Qt 6.
This also allows to require passing unit tests in all CI configurations.