Fix event map bug that didn't encode URLs properly