Revert "Remove obsolete ref to cgi"

This reverts commit 95ec346c2ada3394fdb8db452d824ba047e1ac7a.
Add back use of cgi escape

Added originally in 27cc6d7086576ae7fce22d47ead7f863a937f524 and
reverted in error in 5a2eee348484403bf10d0617ce4dff462db1ad2f.
Remove cgi from exclude_module list