Handle files with multiple spaces correctly (fixes #56)