add missing escape characters