correct mail encoding