fix terminology: render -> encode
fix terminology: render -> encode

Functions render_lines() and render_styles() actually encode the
argument in JSON. They don't render anything or invoke a renderer.

google/xi-editor,google/xi-editor,google/xi-editor,google/xi-editor