fix encoding when call system command