refresh field names after all layers loaded and encoding changes (fixes #6840)