only run these tests on Ruby's that support encoding