Trap a lookup_file/lookup_uri into a scalar