Fixes #179
could be more elegant, but works for MolFromSmiles and MolFromSmarts
clean up the way the unicode strings are handled and broaden suport a bit