convert shell bytes to string