Fixed minor issues: url encoding, array separator, xhr response