use stream method to handle network IO, to solve the Chinese encoding problem