fixing logging of unsanitized string