Made source code input encoding explicitly UTF-8

I was using werkzeug with flask and I got an internal server error because the traceback code failed at displaying a unicode string.