So what I did to make import of WhiteSpaces work.
First I editet the my esxi according to
https://pve.proxmox.com/wiki/Migrate_to_Proxmox_VE#Considerations for Mass Import. I set the correct session settings. Then I deleted all snapshots of the VMs (Makes importing 4x faster)
And now to how to
FIX the import even with whitespaces. I checked online the commit that fixes the problem and changed the file accordingly on my instance.
Commands
make a back-up of the file:
cp /usr/share/perl5/PVE/Storage/Plugin.pm /usr/share/perl5/PVE/Storage/Plugin.pm_bak
open file:
nano /usr/share/perl5/PVE/Storage/Plugin.pm
edit line 985: (You can see your current line in nano using Strg + c)
Remove everything including the or so the line looks like this:
($parent) = ($parent =~ /^(\S+)$/); # untaint
Reboot.
After that the import even with whitespaces worked for me.
I hope it helps.