Fix encoding in gps attachments.
Fix encoding bug when receiving subject.