I've always used them ever since my first CPG installation way back in 2006 with the 1.3.0 series. Never had any issues till moving to the new host/server.
Still doesn’t make it a good idea. It does to some extent depend on the Linux distro but spaces in filenames as well as hyphens can cause problems. You can give your pictures names like that, just for the actual file name itself it is not recommended by most Linux packagers.
Let’s give and extreme example of why not. This is the most extreme case but valid.
Canon have last year launched their new RF lens mount. Superb for mirrorless cameras and some wonderful lenses have been launched. You’ve bought yourself a shiny new Canon R and a new RF lens to go with it. You save your first pic in windows can cal it “-rf test pic with new lens” which is fine in windows.
Later on you copy this file to your Linux box but accidentally put it in the root directory. So using the command line you decide to delete the file. In Linux you use the rm command which is short for remove.
rm-rf test pic with new lens
What would happen? Well, Linux would see the rm -rf as a command. The -rf switch means recursive (the r) and force (the f). This simple mistake would delete all the files and folders on your install without so much as an are you sure.
Now that is an extreme example. You would be amazed however how common problems occur using hyphens and spaces in file names. Good code can mitigate things, we can strip these out or ignore them etc with an extra step. However, one day these things can cause you a headache.