# File lib/redis/connection/command_helper.rb, line 35 def encode(string) string.force_encoding(Encoding::default_external) end