get_check_code supports non-unicode arguments