History logging - Unicode decode issue