Escape HTML in JSON of calendar module

Fixes #2598