be sure to encode the display strings