add_attachment_stream fix: added unicode string type support

Previously did not allow unicode string type support for add_attachment_stream. This pull request fixes that issue.