Properly canonicalize network_str

I forgot to actually assign the canonicalized representation to
network_str.