Fix Notification.trim() for alerts with multibyte chars.