Fix message formatting in sendMessage().