avio: Fix sanity checks in ffurl_read*