Fix compatibility with locale