Merge issue #16323: Fix wrong C API documentation for locale encoding.

Patch by Berker Peksag.