Don't crash when system locale cannot be found (fixes #37)