Fixes #20852 - fixes instances of Sphinx wrongly generating left quotes

Sphinx generates left single quotes for apostrophes after
code markup, when right single quotes are required. The
easiest way to fix this is just by inserting the unicode
character for a right single quote.

Instances of the problem were found by looking for
`</a>&#8216;` in the generated HTML.