I do not see the problem you are having with spaces in names - they are always getting escaped correctly for me.. There must be some other non-obvious factor at work.
Do you by any chance have the % in the names displayed in the calibre GUI? I guess that case might not be handled correctly.
|