Fix #2. UnicodeDecodeError when storing email. codecs.open should not be used as this is not unicode