updated doc with encoding section