Escape slashes only when django_compatible option is false