System.Text.Encodingクラス
使うインスタンスはShift_jisなら日本語版WindowsではEncoding.Default一般的にはEncoding.GetEncoding("Shift_jis")