Basic integrity check for file names