test that uri query strings are encoded correctly.