A .NET Stream implementation that converts a string to a stream with the specified encoding