Fixed unicode support in WSGI and templates.