fix escape sequences