git-gui: Optimize encoding name resolution using a lookup table.