End word before emitting line.

This fixes a bug wherein clients ending lines with '\n' would end up
losing their last command word.