Always escape dots in preg_replace() to not truncate www. by mistake, like from ^www-