Adding connection timeouts and URLEncode and URLDecode options