I now it doesn't make sense, but I have fixed similar issues by changing permissions for the file, so the Users group have Modify permissions. I think it shouldn't be necessary as the axlocaladmin user you log onto the machine with is an Administrator which already has Modify access.
Maybe it is a side effect, but it makes me able to save my changes from for example Notepad.