More efficient command escaping