fix invalid path separators.