you could even do

```python
encoding = kwargs.get('encoding', get_option('display.encoding'))
```