added support to escape a directory name for mapped version