gajim: correctly open / close file when computing hash