Files: prevent people from renaming files to '.'

For #1089