Fix locale on BSD