Fix errors with reports files - develop

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