unicode, alerts on connection added

unicode added;
alerts about bad connection and authorization added;
slightly refactored;