Decoding url before splitting into segments