Shell/4213

[endlessm/eos-shell#4213]
I was trying to protect against the possibility that there might be an error if somehow the locale support was broken, but I'll remove that if not truly necessary.