Correct parse attachment filenames.

  This updates issue #45