"trim" statements removed as it was pointed out that these are already

MakeSafe() in assets.inc.php.