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