class Geocoder::Lookup::MaxmindLocal

def encode_hash(hash, encoding = "UTF-8")

def encode_hash(hash, encoding = "UTF-8")
  hash.inject({}) do |h,i|
    h[i[0]] = i[1].is_a?(String) ? i[1].encode(encoding) : i[1]
    h
  end
end