new string based encoding of sql values