escape some symbols

Also fix a typo.