Parameter with encoded ampersand was parsed incorrectly

Input:
https://www.yandex.com/yandsearch?text=procter%26gamble
https://www.yandex.com/yandsearch?text=m%26m%27s

Expected report:
https://www.yandex.com/yandsearch?[text=procter&gamble->text=m&m's]

Actual report (incorrect):
https://www.yandex.com/yandsearch?[gamble&text=procter->m's&text=m]
this situation ti unbelivable :) but can u throw illegal argument exception (for sonar analysis)?