fixed encoding bug & can't save reply message log bug.