safe serialize mysql insert
From http://davidwalsh.name/php-serialize-unserialize-issues