Replace all instances of parse_qs() with dict(parse_qsl())

Using parse_qsl allows simplifying the code when we know that we will
only have one key with this name.