[core] Make header names case insensitive