Commands are documented to include the final newline.

Update tests and serialization code to match.