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