fixed the invalid byte sequence errors when logcat outputs binary by using char8 encoding