You can create a new action Replace for _FILENAME which replaces spaces by underscores.
Best regards, ~ Florian