leap_assert_type(data, str)? In case we forgot to catch a bug somewhere with these fixes.