Fix the wsgi response header is not str issue

the wsgi response header is not str but actually unicode. Force
mime_type seems to fix it.