$mech->add_header( Encoding => 'OFFICIAL_ENCODING_LABEL_FOR_YOUR_DATA' );