The most common reason for this is that short filename creation may be disabled in Windows. You can find out more here. If it is disabled, or if is enabled but for some reason the file does not have a short filename set, Windows will return the long filename instead.