Update grit_ext.rb

For sometimes encoding return wrong and CharlockHolmes check is not right