Escape generated strings