defend against more exotic paths (like paths with spaces)