You might want to try removing any non-letter/number characters before passing it to the system command. Generally system commands don't like special characters.
$company_name = ereg_replace("[a-zA-Z0-9 ]", $company_name);
Would take out any non-letter/number characters and only allow single spaces.
Tim
Pay For What You Use, Not What You Don't!
http://www.tier1host.net