in reply to decoding a url
has been tried and doesn't give the same result as what that tool does.
Prove it, show some perl code as per How do I post a question effectively?