On some systems, local.setlocale
cannot be called with just a
language code; an encoding must be specified also. (See the
documentation at
https://docs.python.org/3/library/locale.html#locale.setlocale.)
This change specifies an encoding for the locale used in testing, which prevents exceptions from being thrown on such systems.