Move encoding setup to Setup section.