bug17005: add is_string() check on language