gitk: Do not hard-code "encoding" in attribute lookup functions