Support urlencoded params for batch

nmaps sends post requests with urlencoded params
if json is invalid, it'll fail. I think it's good to fail first in this place.