Escape strings correctly.