Sort out encoding for strings for post to prov store