Fix BaseResponse.get_wsgi_headers

This fixes several errors related to "Cannot mix str and non-str arguments" on many tests.