Fix a comodification exception loading locales

Signed-off-by: Ross Allan <rallanpcl@gmail.com>
Merge pull request #561 from nallar/master

Fix a comodification exception loading locales