Escapes any characters in a path segment that are not allowed in file or directory names on POSIX-compliant systems.
The path segment to escape
The escaped path segment
Escapes any characters in a path segment that are not allowed in file or directory names on POSIX-compliant systems.