change.encoding function

Change character encoding