codec/line: do charset conversion on flush

Add tests to verify line codec does charset conversion on flush.

Conflicts:
	spec/codecs/line_spec.rb