Ebook: handle URLs more consistently in decoded form (fixes issue 2565)