Fix UnicodeEncodeError - download history transition file.
Fix ValueError - in user details views.