fix CheckFileName