Replace URI string separators with DIRECTORY_SEPARATOR