[#4193] Fixed unicode and quoting issue in attachments and added tests

Signed-off-by: Cory Johns <johnsca@geek.net>
4 files changed