Modified HttpClient to URLEncode the LocalPath section of endpoints because of an issue with endpoints with commas in them.