Use String#bytesize on Ruby 1.9