Bug with preg_replace in filename()