ensure header is cast to string before downcase