replaced special characters with \u001b and \u009b