How to change a blank for underlining?

Please see the topic How do I replace the string "xyz" in tag-fields or filenames? from the FAQ.

Best regards,
~ Florian