Strangely enough in Windows 7 some files seem to have a padlock icon that’s started appearing. After a bit of troubleshooting I found that this is actually due to NTFS permissions. To fix this, set the file to be modifiable by the user (right click -> Properties -> Security tab).