CORE-4403: Changed how byte arrays are converted to strings to so that
binary files don't throw errors anymore.