Fix copying paths with whitespaces

Plus special characters