[BASE-38] simplified URL decoder, added test cases