Fixes thread, memory-map, and OS data packet types. These were attempting to substr when the encode function already handles that. Was making it so gdb was only ever receiving the first 1000 bytes of the data and then decoding incorrectly.