Fixes bugs in Url Encoding and Decoding