Use base64 in formatAnchor() instead of formatEvents()