Better string escaping. Fixes graph view