@staticmethod<EOL><INDENT>def _encode_url(full_url):<DEDENT>
return urllib.parse.quote(full_url, safe="<STR_LIT>")<EOL>
Encode invalid characters in URL to provide, such as spaces.

This implements code from the following URLs
https://bugs.python.org/issue14826
https://hg.python.org/cpython/rev/ebd37273e0fe