refactored http header normalization