update for deprecated '/e' flag in preg_replace (php 5.5)