[Fix Bug 835318] Error adding groups with non-latin chars

also fixes bug 740990