Как URL кодировать обратную косую черту с помощью R / RCurl

В настоящее время я пытаюсь закодировать строку для вставки в URL. Моя проблема в том, что это, похоже, не работает, когда моя строка содержит обратную косую черту. Я пробовал 4 подхода с использованием функций URLencode, curlEscape (из RCurl) и curlPercentEncode (из RCurl), но ни один из них не был успешным.

> URLencode("hello\hello")
Error: '\h' is an unrecognized escape in character string starting ""hello\h"
> curlEscape("hello\hello")
Error: '\h' is an unrecognized escape in character string starting ""hello\h"
> curlPercentEncode("hello\hello")
Error: '\h' is an unrecognized escape in character string starting ""hello\h"
> curlPercentEncode("hello\hello", amp=TRUE)
Error: '\h' is an unrecognized escape in character string starting ""hello\h"