Impl Document.save(Writer,encoding)