protected function encodeData($params)
    {
        $data = array();
        foreach ($params as $key => $value) {
            $key = preg_replace('/_[0-9]$/', '', $key);
            $data[] = $key . '=' . urlencode($value);
        }

        return implode('&', $data);
    }