Fix saving options for attribute taxonomies containing special chars. Closes #2975.