should escape {} and \ in usage

the fix is straightforward, and a test is included too

the other commit is for R CMD check