build: Fix headers generation in strange locale.