add setEncoding() and setVersion() to Docuemnt