Escape special characters in file paths when attaching files
Show error message when attaching file fails.