Renames fields to fieldnames.