add escape for tilde

Now, hopefully, tildes in things like CODE spans should be escaped properly.