Fix encoding confliction between original history file.