Fixed url_decode() and added hex_to_char(), which should be used instead of url_decode(char, char) - it's more portable too.