Fix text attachment encoding, #63 follow-up