Escape some strings in the generator