add multi encoding grep mode
for debug
update history