Solution for locale issue

Using meinwald's fix.