add string-like encoding for []byte