Call encodeAsHTML() on title to avoid problems with unvalid html