Fixed #22996 -- Prevented crash with unencoded query string (Python 3)

Thanks Jorge Carleitao for the report and Aymeric Augustin for the
review.
Ah, sorry, I forgot to include the fix in the committed patch. I'll use `falls back` as it seems to be also used elsewhere in the docs.