I will say this is a good bug for compatibility’s sake
A lot of (old) programs have issue with spaces in filenames, and especially using more obscure, command line tools, this can be an issue. A common practice is to use a dash or an underscore instead.
Nonetheless, best user experience would be a warning instead of a bug.