dealing with escapes correctly