utils: accept '?' as path terminator in uh_path_match()