Issue #22943: bsddb tests are locale independend now.
This fixes tests on 8-bit locales (in particular on Windows).