Como codificar por URL uma barra invertida com R / RCurl

Atualmente, estou tentando codificar uma string para inserção em um URL. Meu problema é que isso parece falhar quando minha string contém uma barra invertida. Até agora, tentei quatro abordagens usando as funções URLencode, curlEscape (de RCurl) e curlPercentEncode (de RCurl), mas nenhuma delas foi bem-sucedida.

> 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"

questionAnswers(1)

yourAnswerToTheQuestion