gitview: Fix the encoding related bug