implement support for files and directories with spaces