Fixed CommonUtils cleanPath

It throws an InvalidPathException and can be called in other code now.