UNDERTOW-222 Catch exceptions from the onOpen method of the web socket
Fix potential issue in the charset encoder