another encoding stuff for emails