Bug fix with Windows and preg_replace