replace invalid chars in files by _ in generated field name