Encode mail text