backslash any $ characters to prevent errors

Fixes #48