Fix framing issue in the encode_body() method

When the payload is frame_size - 8, encode_body generate an extra frame of 0 length. This makes RabbitMQ angry.