Fix export by mail encoding