unpackString works with any one-byte type