implement decode
Changed test to use specific url encoded string;