Added checkForValidFilename method to the FileUtils and updated the invalid characters.