Fix some problems with rendering unicode data.