I'm trying to log a bluetooth connection in an Android app (non-malicious, it's logging diagnostics). However, the transmissions and responses are in byte arrays and contain non-ASCII bytes. Trying to log the raw byte array gives about 20 spaces between every other character.
How can I remove all non-ASCII bytes?