Re #352: Tweak locale check.