[linux] How to get terminal's Character Encoding