[#318] Use config for setting locales…

…and ensure we set locale *after* config is fully loaded.

Fixes #318.