Fix test failure on Ruby 2.0.0 with binary string literal

The problem was that 2.0.0 interprets string literals as UTF-8 by
default now. As the expected string in that test case is binary, we use
pack to write it as a literal. On 2.0.0, there is also "string".b, but
that is not compatible with 1.8/1.9.