-fixed encoding issues
-save/restore encoding for history