Fix errors with reports files - master

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