Encodes and decodes strings in base10.