Replace `CGI.escapeHTML` with `template.h`

Fixes https://github.com/activeadmin/activeadmin/issues/3430