Yes, although in my case I was using the command line parameters (command_str) to get the path of the file I was opening with my application. For example using the "properties->run with" or "rightclick->open with..." function in windows.
This was the only case where whitespaces in the filepath were a problem.