Revert "Fix distributed deadlock between two sessions that are both sending messages to each other."

This reverts commit 27c75e78058f6f682b8449c28522846070594bdf.
Revert "Fix bug where multi-byte characters sometimes are not decoded correctly."

This reverts commit 8b3e7dfd8586a2620329256d0c93018305fc04d4.