Incorrect handling of filenames containing space