string sanitization across code to support paths with spaces