Set locale on exception.