Devinemke has given you the answer. Use it like this
<a href=
<?php
echo urlencode("http://www.cms.hhs.gov/medicare/bni....pdf,Frequently Asked Questions - updated by CMS on August 19, 2005");
?>
Whatever</a>
What you posted isn't php code. What is that?