Add stub Encoding class to run the tests under 1.8