In Maxima, you have to write literal backslash characters as \\.
This affects path names generated by SMath e.g. by the functions CurrentDirectory() and DocumentDirectory()
The back-translation from \\ to \ is not essential, as double backslashes seem to work in SMath path names. However, this translation would be more consistent.