Or just make charset in this line (cgi.c, line 322):
<verbatim>  fprintf(g.httpOut, "Content-Type: %s; zContentType);</verbatim>
configurable...