fixed file path with spaces in dialog mode