Add RUBY_VERSION conditional test for UTF-8 encoded strings in ruby >= 2.0