we use shQuote as a convenience for word -> 'word' however, it doesn't escape values as we would like, hence this one.
shQuoteEsc(x)
x
character
character has single quotes escaped