protect file paths with space character in them