crudely escape nonprintables
wrap long lines; we're assuming the terminal doesn't on its own