Properly validate file and folder name creation