Fixed bug in FormatAsHtmlTitle that broke title with ' in them.