[DEV-1739] Import http rather than importing urlquote_safe. For some reason, it breaks the dev server when imported directly.