Replaced split with preg_split.

Split is deprecated so I rewrote it using preg_split. It's been working well for me after 60,000+ hits in a production environment.