Fix HTML encoding issue with single quotation marks