Fixing API errors when sending messages that have linefeeds, fixing issue #3