Convert attachment data to a string for viewing

The data returned when an attachment is retrieved is bytes. In order to
view it properly, it needs to be converted to a unicode string.

This fixes #74.