Encodes a 'text' header according to the rules in rfc2047.
a #GMimeFormatOptions or null
text to encode
the charset to use or null to use the default
the encoded header. Useful for encoding headers like "Subject".
Encodes a 'text' header according to the rules in rfc2047.