Fix serialization so urls can be shared