encode content