Harden pronsole.log against unicode strings