Strip options from tag

This strips options from the tag (useful on structs which are also encoded to json).