url encoding for arrays should add a pair of bracket at the end of the key string