Slightly better encoding tests.

I decided to stick to URL encoding instead of JSON for now because it allows multiple values per key.
I could still do a list of lists in JSON, but that's less neat.
README update