Fix unicode handling in logger and normalize command runner, fixes #247