Update views.py

Resolving UnicodeDecodeError