Added IRC code. Fixed some problems with unicode strings.