Manual Decoding

<?php echo urldecode($_GET['foo'])?>
<?php echo base64_decode($_GET['foo'])?>