Update to use Encoding.GetEncoding