too long

I am not sure if anybody else has noticed this. but i am using FPDF library to generate PDF documents. But I just noticed if I pass a value with a ' in it, the ' is replaced with '

For example the one value being passed is CD's but it is shown after the output as CD's anybody have an idea on what is causing this?

I use $pdf->Cell(0,4,"Name: ".$name,0,1,"C"); to add the string, but I have also tried using $pdf->Cell(0,4,"Name: ".htmlspecialchars_decode($name),0,1,"C"); aswell but still getting the same result.

Any ideas are welcome & appreciated. :)