Added encoding and decoding of ASCII strings