catching possible locale exceptions that can be thrown if setting locale doesn't happen