Added a Save method with support for System.Text.Encoding.