Clean up quotes for headless client