update for encoded cookie value & using rawurlencode