Fix logging all characters outputted.