fix mail data conversion to server encoding(thanks to troggy)