CDL options are controlled with the "CDL" preferences (in menu File / Preferences..., "I/O" section, "CDL" tab).
This dialog control the library name and path information that is written, and it lets you control the conversion of square-bracket characters.