Added force_encoding to avoid errors when sending messages containing non-ASCII characters. This would fix issue #1, albeit leaving the encoding decisions to the caller. An alternative would be to send the encoding as part of the message, and correctly decode it when parsing a message. I think it's fine to let the user handle encoding himself.
Added force_encoding to avoid errors when sending messages containing non-ASCII characters. This would fix issue #1, albeit leaving the encoding decisions to the caller. An alternative would be to send the encoding as part of the message, and correctly decode it when parsing a message. I think it's fine to let the user handle encoding himself.