How to change the Encoding Format of keys.