PHP 5.4 compatibility

Use of e-modifier in preg_replace is deprecated, use preg_replace_callback instead