Actually uudecode attachments when extracting them

Closes #1653.