Added additional error handling for crashed sockets
Clear input field after text message is sent
Fixed some possible crashes
Added hack to support utf-8 chars
Removed debug print (still encoding problems)