added a basic implementation of Encoding. You can either use default values or pass in which formats to use. The preference is named > decimal > hex, but you can customize.