fixed two bugs (see below)

1) On stanza error, the server would block forever
2) Incoming messages with wide characters in Websocket connections would cause a disconnect