Fixed #20889 -- Prevented email.Header from inserting newlines

Passed infinity as maxlinelen to email.Header to prevent newlines from being
inserted into value returned by _convert_to_charset