I would like to convert SMILES strings into file names. There are many characters to avoid in file names, i.e. \/:*?"<>|
or maybe even []()^ #%&!@:+={}'~
(see discussion) for convenience.
I would like to escape such characters that appear in SMILES. However, I could not see a list of allowed characters for SMILES to decide on how to escape them. There might be also some existing convention to do this for databases, so I am all ears for any help.
An alternative is using InChIkeys but since they are not human readable, I want to avoid that option.
Edit: I am mainly interested in small organic molecules with less than 20 atoms.