Fix crash where file/directory name is a number