use system encoding utf-8 instead of encode convert

as git will always return utf-8 encoded string (True?), set system encoding to utf-8 and then restore to avoid encoding convert(which do not work correctly in NON english), only when [encoding system]!=utf-8