Convert byte-like object to string