decoding and encoding uri