encodeNetstring