Fixed so that it's possible to log data with charset binary.