Switched to preg_replace_callback for PHP 5.5

Adapting toJsonRemoveUnicodeSequences function to use preg_replace_callback instead of preg_replace because the e modifier is [deprecated](http://php.net/manual/en/reference.pcre.pattern.modifiers.php) as of PHP 5.5.0