Bug 2578 - derive the value for user\'s charset from locale

Summary: derive the value for user\'s charset from locale