Aprostrophe Patch

SQL has issues writing string variables with single quotes/apostrophes.
So to circumvent the issue, the pvstrErrDesc parameter is run through
the Replace function substituting any one single quote/apostrophe to two
contiguous single quotes/apostrophes.