Attachment names

- will now decode odd attachment names
- unit tests