Fix up some missing inlineCallbacks and harden logging against non-ascii characters.