[Bug] Trailing spaces in filenames unrecognized

No need to open a new thread.