Fix locale-dependent tests.

Closes #341.