preserve casing of headers in res.header and res.set

fixes #2063