Sanitize language settings

To avoid commands bailing out with "unsupported locale setting" errors.

Change-Id: I54ae4cd84a0a4b4875533181b1d96563a1604775
Merge "Sanitize language settings"