Decode history file for python3 compat