Fixed a bug where special characters in a field group name were not correctly sanitized

Signed-off-by: Elliot Condon <e@elliotcondon.com>