update filename attachment to write all non word and periods to underscores