Convert url path to valid directory file system path.