bpo-35773: Fix test_bdb on non-UTF-8 locales. (GH-21136)

(cherry picked from commit 94eee69e9b3a7e7d33142a47ffea560beb8f1596)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 file changed