Fix escaping of slash characters in identifier input

Any `/` (slash) characters in a `sourceid` identifier input must be replaced by a `.` (period). This process was being applied to all inputs, causing problems with many different input types, but most noticeably breaking SMILES identifiers with stereochemistry information.

This fix ensures the replacement is only applied to `sourceid` identifier inputs.
Docstring formatting fixes