Change Encoding

Add the ability to change the character encoding.