ADDED Commandline options, socket error handled
ADDED utf8 support