Using a text-encoding-safe but slow/hacky setup for binary data.