#!/usr/bin/php -n
<?php

$contents = file_get_contents('php://stdin');
echo urlencode($contents);