Check for invalid URI