Substitutionschiffren: minor bugfixes and api changes