Replace ' with html entity to fix bug 1050277