Store headers case-folded, fix tests.