Fixes error introduced in #14 - the messages needs to be escaped