encode arrays using params[]=1 instead of params[0]=1