#79: ensure ~~ works with mmkdirp as well as URI encoding