Reland setlocale -> uselocale changes
In b951e74f I reverted my recent setlocale -> uselocale changes after discovering it introduced a crash in Epiphany.
I should reland this work after 3.32 is branched, copying the fixed version of the code from Epiphany.