Add basic filename checking