This can be removed from a terminal session in Linux or macOS (it may be possible from Windows, but I've been away too long to know). Not tested (don't have a file handy with embedded nul, hence the backup)
cp your_file.Rmd your_file.BAK
perl -pi -e '\0//g' your_file.Rmd