decode the encoded uri before parsing