Use em linetext protocol

Use EM LineText2 protocol to ensure the lines are correctly handled.
Fixes random issues with clients such as Pidgin.