The test sets state_dir to a directory named a%41b?c#d, opens the derived db_url with the SQLite driver, and checks that the database is state.sqlite3 in that directory, in WAL mode. It fails until the directory is escaped in the URL. Model: opus-5-5