lui-logging: use raw-text coding system for writes

This avoids blocking applications when Emacs wants to determine the
coding system.