Using unicode strings for error logging when input can be non-ascii