serialize :pvalue to unique tokens