[Azoth] Proper smiles handling.

Don't double-replace smiles, proper check for that.

Fixes #1387.