Wrap the value in the generated code, so you can have values that contain space (broke when I tried to do a case tag with member_state of 'needs approval').
Added a missing slash to separate the category from username. Now insome cases we might have two slashes (the whole cat/user/archive stuffis pretty poor). In any case two slashes is less of a trouble than noslash.