added Encoding class