Fix errors with reports files.

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