convent unicode to str when load history