nl: instantiate class Header with 3 arguments: value, string 'utf-8', maxlinelen set to sys.maxsize, call the encode method on it,
code: value = str ( Header ( value , 'utf-8' , maxlinelen = sys . maxsize ) . encode ( ) )