fix escape parsing