Use str_replace instead of preg_replace. Follow up of r75769