There's no need to encode `payload.encoded` again.
```ruby
buf << encode_shellcode_stub(new_thread)
buf << payload.encoded
```