fix strange chars in history