Added function for encoding email headers as unicode utf-8