*-kill-path-component broken for paths with spaces

Given the current shell command

$ ls b/I\ am\ a\ file

and the cursor at the end of the line, Ctrl+W (backward-kill-path-component) will delete only " file", not all of "I am a file" which is the correct last path component.