diff --git a/test/flac_file_test.rb b/test/flac_file_test.rb
index <HASH>..<HASH> 100644
--- a/test/flac_file_test.rb
+++ b/test/flac_file_test.rb
@@ -44,7 +44,8 @@ class FlacFileTest < Test::Unit::TestCase
 
       should "contain flac-specific information" do
         assert_equal 16, @properties.sample_width
-        assert_equal "x\xD1\x9B\x86\xDF,\xD4\x88\xB3YW\xE6\xBD\x88Ih", @properties.signature
+        s = ["78d19b86df2cd488b35957e6bd884968"].pack('H*')
+        assert_equal s, @properties.signature
       end
     end
Fix test failure on Ruby <I> with binary string literal

The problem was that <I> 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 <I>, there is also "string".b, but
that is not compatible with <I>/<I>.