Here's a Little function to decode part of a query String that has been encoded as per the HTML specification with %xx notation, where xx is the hexidecimal representation of a character.
Be warned that this function modifies the contents of the string you pass as the argument!