Escape terminal characters for sxcp