removed encoding from Socket#write; it is only from String data
designed API of worker