Handling of spaces in paths