Fix #312. Quote file names of attachments.

See the comment in the code.