workaround setlocale to avoid number format problems