Bugfix #584603 (Filename processing turns good chars to _)

Now instead of accepting only several characters, "replace all messy chars" replaces only the most problematic ones.