Fix UTF-8 bug with parsing form part headers in CgiParseMultipartFormParts
Fix hang on read bug in atexit hook when output stream is empty.