BUG: Add errors argument to to_csv() call to enable error handling for encoders
- [x] closes #22610 
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry

Cool makes sense. Can you add tests to make sure this works? @WillAyd Test code is now added, pls. review There is prior art for the `errors` argument for this purpose in `DataFrame.to_hdf` and `DataFrame:read_hdf` @roberthdevries this looked fine, can you merge master and ping on green.

@gfyoung if you have comments. @jreback: Agreed that this looks good.  Just need to merge with master. Thanks @roberthdevries