Changed socket encoding to Unicode