FWIW (non-technical readers)...<p>The issue, I think, is that the \w escape sequence doesn&#x27;t include characters that are outside what Unicode considered &quot;word characters&quot; at the time it was originally implemented.  So, non-western characters that are higher up in number don&#x27;t get picked up by \w.  The strategy here was to change the regex to mean, &quot;accept any character that isn&#x27;t something that&#x27;s illegal for a file name&quot;.