Make the encoding check a no-op on Ruby 2.0