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