fix bug: atmosphere can not send message that contains message delimiter

please check regressions, especially the long messages. thanks.