fix percent escape bug