Fixed warnings due to e modifier in preg_replace