Modified to subclass System.Text.Encoding

Fixes issue #2