URL encode the whole URL
Move Google Scholar search after form submission

18a70fecc9 introduces a very neat idea. This is just a cut/paste to move
the functionality until after the form is submitted.