fix content encoding to be case-insensitive