Fixed double encoding issues in module designer (and module groups not being encoded correctly on creation).