Set textwidth and encoding