Explicitly initialize the locale, to handle non-ASCII names

This seems all is needed to fix #1