When using PHP\'s pathinfo() function on a filename known to be UTF-8, it does not return the correct value, unless there are \'normal\' characters in front of
pathinfo() is locale aware, so for it to parse a path containing
multibyte characters correctly, the matching locale must be set using
the setlocale() function.