Ensure response headers are given as strings (not unicode)

The dictionary containing the headers has both keys and values given as
unicode which caused a problem when running with waitress 0.8.9. This
commit ensures the headers are encoded to UTF-8.