Fixes issue with logging binary data