workaround PHP bug #39923, #37268

https://github.com/JamesHeinrich/getID3/pull/7
workaround for PHP Bug #39923 (undefined constant IMG_JPG)
workaround for PHP Bug #37268 (getting basename of the file with
non-latin first letters)