Properly quote paths within HTTP URLs.

Cherry picked from:
https://github.com/digium/swagger-py/commit/f0d272872ef9948ed84bed06ec94c8036902ef1d