fix diff view encoding error