TST: added a test case for special character in file name
Added special character use case in the existing function "test_filename_with_special_chars"

- [x] closes #26074 
- [x] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
