Preventing headers from being rewritten, and fixing stringify