add multi encoding grep mode