Collect stats, and avoid locale-specific misbehavior