We should move the `_checkForValidFilename` from ProjectManager.js to FileUtils.js and then call it from both places since this is basically doing the same thing.