It's not common, but some files don't have an extension, so you shouldn't check for dot.

You should also make sure there are no characters that are not valid in file names. Take a look at the _checkForValidFilename() function in ProjectManager.js for a list of chars to check for.