// Encode returns the encoded-word form of s. If s is ASCII without special // characters, it is returned unchanged. The provided charset is the IANA // charset name of s. It is case insensitive. public static @string Encode(this WordEncoder e, @string charset, @string s) { if (!needsEncoding(s)) { return(s); } return(e.encodeWord(charset, s)); }