add url quote to dirName. fixes #270