fixes preg_replace \e issue