test_util: fix encoding test for Ruby trunk (2.1.0dev)