fixes to cachebuilder - filenames, kiosk url, escape ~