fix unicode error on logging statement