Properly escape character literals in Haddocks