There are indeed better expert than me, but I don't see any problem to do so - just reuse the hut with sprocket carrier.
I was told by someone that in fact 77 and 78 17 rear rim is in fact 18 inch, it has kind of groove on the rim to fit smaller tire. That groove is usually fist where chrome corrodes - there is dirt and water kept by centrifugal forces when wheel rotates... Look on rim shape and compare with 18" you will see it.
I have K7 750 and the same 17" rim - I don't like it but it is original.