conf: don't use keyword `errors` for `str.encode`

This is not supported with Python 2.6. Just use it as a positional
argument.