bug 981274: Quick fix for ISE when $ used in macro names

This doesn't restrict document editing at all, but it does at least prevent an ISE on rendering a page with errors involving macros whose names contain '$' (eg. `{{ $something }}`). Turns out, this runs afoul of our URL routes in Django.