Use insert-file-contents instead of find-file-noselect and in the process avoid the RAWFILE feature.
Attach a file by drag & drop or click to upload