Use locale 'C' for running tests. This fixes #17423