gitk: Enhance file encoding support