Use binary mode for CGI trace files.  Make CGI trace cross-platform.