Fix locales problem with 1.9