I believe the munging is by Apache, but I would refer to the usual CGI Environment variables - http://tools.ietf.org/html/rfc3875#section-4.1.18