fixing the encode URI and decode again... now behaves as expected...