Let\'s say, you have a Bash alias like:
alias
alias rxvt=\'urxvt\'
which works fine.
However:
I just use shell codes.. e.g. \x27 or \\x22 as applicable. No hassle, ever really.
\x27
\\x22