Ruby 1.9.3 needs different slicing borders for concat messages.
Use binary encoding when calculating the payload length.