Location header escaping in redirects (ticket #882). The header is escaped in redirects based on request URI or location name (auto redirect).