Import from libucl
Dirname and filenames are url encoded