Better quoting when generating namespace directives

Things like `%'%` and `%\%` are valid names in R, but roxygen did not quote these properly when generating namespace export statements.