adding an encoder for thistle values to output the appropriate string