That depends, if you have the fortune (misfortune?) of using the CAD software Creo/ ProE from PTC then spaces are verboten since they haven't progressed from the days where the software was written for UNIX.
To be fair mine only has an underscore because Lemmy doesn't support periods in user names. I have actually barely used the software I was talking about and use another one that doesn't care.