better URI check for prompt filter short circuit