Fix for #1362

- Replaced usage of `urlparse` in `PreparedRequest.prepare_url` with `urllib3` equivalent.
- Modified IDNA encoding section so that it only encodes the host portion of the URL