Added function to remove a character which can not be used in the file name.