Make sure files are named correctly on save.