Add debugging to check_plain() to figure out what is sent