Fix invalid Content-Type header if text_charset/html_charset are set to empty string