Fix #1041: play unicode logging crash