Fixed JSON encoding error

When git's log contain UTF8 code, to_json conver it to wrong string
with ���
Merge pull request #14 from sugarmo/master

Fixed JSON encoding error