diff --git a/spec/support/encoding_helper.rb b/spec/support/encoding_helper.rb
index <HASH>..<HASH> 100644
--- a/spec/support/encoding_helper.rb
+++ b/spec/support/encoding_helper.rb
@@ -36,11 +36,11 @@ module EncodingHelper
 
     case obj
     when Array
-      obj.each { |item| check_utf8(item) }
+      obj.each { |item| check_binary(item) }
     when Hash
       obj.each { |key, value|
-        check_utf8(key)
-        check_utf8(value)
+        check_binary(key)
+        check_binary(value)
       }
     when String
       expect(obj.encoding).to eq Encoding.find("binary")
fix check_binary helper to recurse correctly