Fix double-encoding of url params from switch to requests library