rename WireEncoder to NetworkEncoder