I have found the problem, I uninstalled avast and reinstalled it and it was doing the same thing, would not pick it up with the file shield. So I started to change settings in File System shield and found out under “Scan when opening” if I check the “Scan all files” than it will stop me from saving the file again.

Was this option off by default (I do not think I have ever changed those settings) and should I turn it on?