wrap: Try to protect paths against spaces.