Fix including http:// in proxy URL.
Fix invalid type conversion while getting a proxy url.