Account for character encoding in Content-Type headers.