Avoid going through an intermediary strings when en/de-coding attachments.